function answer = ejer5()

	er = 0.0001;
	m = 100;
	x0 = 0;
	global a = 2;
	
	hx = punto_fijo('f1',x0,er,m);
   	
	fprintf("raiz: %f" , hx(end));
	x = linspace(-5,5,100);
	%plot(hx,0,'r');
	%,x, x.^2-a,'b');
	
endfunction   


function  y = f1(x)
	
	y = x^2 - 5*x + 3;
	
endfunction

function  y = f2(x)
	
	y = 2 *x - tan(x);

endfunction


function  y = f2(x)
	
	global a;
	y = x^3-a;

endfunction


